package cn.jqq.org.mapper;

import cn.jqq.org.domain.Department;
import cn.jqq.org.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {

    Department findOne(Long id);

    List<Department> findAll();

    void add(Department department);

    void update(Department department);

    void delete(Long id);

    /**
     * 查询数据总条数
     * @return
     */
    Long queryCount();


    /**
     * 分页查询
     * @param departmentQuery
     * @return
     */
    List<Department> queryData(DepartmentQuery departmentQuery);
}
